package com.ex03_05;

import android.R.string;
import android.app.Activity;
import android.os.Bundle;
import android.util.DisplayMetrics;
import android.widget.TextView;

public class EX03_05Activity extends Activity {
	private TextView mTextView01;
	
    /** Called when the activity is first created. */
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);
        
        DisplayMetrics dm = new DisplayMetrics();
        getWindowManager().getDefaultDisplay().getMetrics(dm);
        String strOpt = "mobilephone screen is :" +
        	dm.widthPixels + "x" + dm.heightPixels;
        
        mTextView01 = (TextView)findViewById(R.id.myTextView01);
        mTextView01.setText(strOpt);
    }
}